<%@ Page Language="C#" MasterPageFile="~/Site.master" Title="Repeater Render Bullet" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
    <h4>Categories</h4>
    <AjaxData:Repeater ID="Repeater1" runat="server" RenderAs="Ul">
        <ItemTemplate>
            <li>{{ Eval(Name) }}</li>
        </ItemTemplate>
    </AjaxData:Repeater>
    
    <script type="text/javascript">

        var _repeater;
        function pageLoad(sender, e)
        {
            _repeater = Repeater1;
            DataService.GetAllCategory(onLoadSuccess);
        }

        function onLoadSuccess(result)
        {
            _repeater.set_dataSource(result);
            _repeater.dataBind();
        }
        
    </script>
</asp:Content>